<?php

namespace addons\tools\model;

use think\Model;

class User extends Model
{
    protected $name = 'user';


    public function userVip()
    {
        return $this->belongsTo(UserVip::class, 'id', 'user_id');
    }

    public function userVipRule()
    {
        return $this->hasMany(UserVipRule::class, 'user_id', 'id');
    }
}